﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Gizmox.WebGUI.Forms;

namespace TVC
{
    [Serializable()]
    public class RootCategoryNode : CategoryNode
    {
        private NavigationTabs mobjTabs = null;
        private BaseForm mobjBaseForm = null;

        public RootCategoryNode(NavigationTabs objTabs, BaseForm objBaseForm, string address, string language)
            : base(null, "Root", address, language)
        {
            mobjTabs = objTabs;
            mobjBaseForm = objBaseForm;
        }

        public override TreeNodeCollection Nodes
        {
            get
            {
                return null;
            }
        }

        public override CategoryNode AddCategory(string strLabel, string module, string address, string language)
        {
            return new NavigationCategoryNode(mobjBaseForm, mobjTabs, strLabel, module, address, language);
        }

        public override CategoryNode AddCategory(string strLabel, string module, string strIcon, string address, string language)
        {
            return new NavigationCategoryNode(mobjBaseForm, mobjTabs, strLabel, module, strIcon, address, language);
        }

        public override CategoryNode AddCategory(string strLabel, string module, Type objType, string address, string language)
        {
            return new NavigationCategoryNode(mobjBaseForm, mobjTabs, strLabel, module, address, language);
        }

        public override CategoryNode AddCategory(string strLabel, string module, Type objType, string strIcon, string address, string language)
        {
            return new NavigationCategoryNode(mobjBaseForm, mobjTabs, strLabel, module, strIcon, address, language);
        }

        public override string Text
        {
            get
            {
                return "Root";
            }
        }
    }

}
